<?php
	$xhtml = $this->render('include/header.phtml').
			$this->render('include/main_left.phtml').
			$this->render('include/main_mid.phtml').
			$this->render('include/main_right.phtml').
			$this->render('include/footer.phtml');
		
	if(count($this->arrDir)>0){
		foreach ($this->arrDir as $key => $val){
			//echo '<br>' . $key . ': ' . $val;
			if($key == 'css'){
				$xhtml = str_replace('href="css','href="' . $val , $xhtml);
			}else{
				$xhtml = str_replace('src="' . $key,'src="' . $val , $xhtml);
			}
			if($key == 'images'){
				$xhtml = str_replace('src="public/images', 'src="'. $val , $xhtml);
			}
		}
	}
	echo $xhtml;
?>